package cn.tedu.spring;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class UserController {

    //@Autowired
    private UserMapper userMapper;

    public UserController() {
    }

    @Autowired
    public UserController(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    public void reg(){
        System.out.println("UserController.reg");
        userMapper.insert();
    }
}
